package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

public class UserServiceImpl6 implements UserService {
    //属性除了set方法可以赋值,还可以通过构造方法
    private String driver;
    private String url;
    private String name;
    private String password;
    private int age;

    private UserDao userDao;


    @Override
    public void save() {
        System.out.println("userservice save...6666");
        System.out.println(driver);
        System.out.println(url);
        System.out.println(name);
        System.out.println(password);
        System.out.println(age);
        userDao.saveUser();
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
